package com.sykj.bsc.jhy.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.sykj.bsc.jhy.entity.Bis_business_order;
import com.sykj.bsc.jhy.service.Bis_business_orderService;

@Controller
@RequestMapping("jhy")
public class Bis_business_orderController {

	@Autowired
	Bis_business_orderService impl;

	// 营业记录列表
	@RequestMapping("businessRecords")
	public String selectBis_business_orderMapper(Bis_business_order bbo, Model model) {
		List<Bis_business_order> list = impl.selectBis_business_order(bbo);
		model.addAttribute("list", list);
		model.addAttribute("shop", impl.selectBis_shop());
		return "backstage/jhy/businessRecords";
	}
	
	//查看详情
	@RequestMapping("selectBusinessById/{order_id}")
	public String selectBusinessById(@PathVariable("order_id") String order_id,Model model) {
		Bis_business_order bbo = impl.selectBusinessById(order_id);
		model.addAttribute("bbo", bbo);
		return "backstage/jhy/seeBis_business_order";
	}
}
